package com.ccxc.question.exam.dto;

import java.sql.Timestamp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@ApiModel(description = "记录")
@NoArgsConstructor
@ToString
public class RecordDTO {

    @ApiModelProperty(value = "ID")
    @Setter
    @Getter
    private int id;

    @ApiModelProperty(value = "问题ID")
    @Setter
    @Getter
    private String queid;

    @ApiModelProperty(value = "提交答案")
    @Setter
    @Getter
    private String su_answer;

    @ApiModelProperty(value = "判断")
    @Setter
    @Getter
    private int judge;

    @ApiModelProperty(value = "用户ID")
    @Setter
    @Getter
    private String userid;

    @ApiModelProperty(value = "正确答案")
    @Setter
    @Getter
    private String co_answer;

    @ApiModelProperty(value = "时间")
    @Setter
    @Getter
    private Timestamp time;

    @ApiModelProperty(value = "该题知识领域")
    @Setter
    @Getter
    private String area;

    @ApiModelProperty(value = "得分")
    @Setter
    @Getter
    private int score;

    public RecordDTO(int id, String queid, String su_answer, int judge, String userid, String co_answer, Timestamp time, String area, int score) {
        this.id = id;
        this.queid = queid;
        this.su_answer = su_answer;
        this.judge = judge;
        this.userid = userid;
        this.co_answer = co_answer;
        this.time = time;
        this.area = area;
        this.score = score;
    }

}
